<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:body>

	<p:dialog widgetVar="bidCreateDialogWidget" id="bidCreateDialogId"
		header="#{bundle.registrationbid_t}" height="450" width="550"
		modal="true" closable="true" draggable="false" resizable="false">

		<h:form id="bidCreateDialogForm" prependId="false">

			<h:panelGrid columns="2">
				<h:inputTextarea rows="7" cols="29"
					value="#{bundle.edict_name}#{edictMB.edict.name}
					#{bundle.product_name}#{edictMB.edict.idProduct.name}         
					 #{bundle.edict_dateTimeStart}#{edictMB.edict.dateTimeStart}
					 #{bundle.edict_dateTimeFinish}#{edictMB.edict.dateTimeFinish}"
					required="true" label="#{bundle.edict_description_t}"
					disabled="true" />
				<h:outputText value="#{bundle.edict_description_t}" />

			    <h:outputText value="*#{bundle.edict_name}" />
				<p:selectOneMenu value="#{bidMB.bid.idEdict}" converter="edictConverter">
					<f:selectItem itemLabel="#{edictMB.edict.name}" itemValue="#{edictMB.edict}" />
				</p:selectOneMenu>

				<h:outputText value="*#{bundle.bid_lance_value}" />
				<h:inputText value="#{bidMB.bid.valueUnit}"
					label="#{bundle.bid_lance_value}">
				</h:inputText>

				<p:commandButton value="#{bundle.bid_confirm}" icon="ui-icon-plus"
					action="#{bidMB.insertBid()}"
					update=":messageGrowl :edictsForm:edictsTable"
					oncomplete="closeDialogIfSucess(xhr, status, args, bidCreateDialogWidget, 'bidCreateDialogId')" />

				<p:commandButton value="#{bundle.button_cancel}"
					icon="ui-icon-cancel" action="#{edictMB.resetEdict()}"
					onclick="bidCreateDialogWidget.hide();" type="button" />

			</h:panelGrid>
		</h:form>
	</p:dialog>
</h:body>
</html>